package com.cj.mobile.iabp.mvp.model.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class FinancialGoodsList implements Parcelable {
    public FinancialGoodsList() {
    }

    public FinancialGoodsList(String catId, String catName, double weight) {
        this.catId = catId;
        this.catName = catName;
        this.weight = weight;
    }

    public FinancialGoodsList(String categoryName, double weight) {
        this.catName = categoryName;
        this.weight = weight;
    }

    // 品类id
    private String catId;
    // 品类名称
    private String catName;
    // 重量
    private double weight;

    public String getCatId() {
        return catId;
    }

    public void setCatId(String catId) {
        this.catId = catId;
    }

    public String getCatName() {
        return catName;
    }

    public void setCatName(String catName) {
        this.catName = catName;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.catId);
        dest.writeString(this.catName);
        dest.writeDouble(this.weight);
    }

    protected FinancialGoodsList(Parcel in) {
        this.catId = in.readString();
        this.catName = in.readString();
        this.weight = in.readDouble();
    }

    public static final Creator<FinancialGoodsList> CREATOR = new Creator<FinancialGoodsList>() {
        @Override
        public FinancialGoodsList createFromParcel(Parcel source) {
            return new FinancialGoodsList(source);
        }

        @Override
        public FinancialGoodsList[] newArray(int size) {
            return new FinancialGoodsList[size];
        }
    };
}
